package com.kinghunt.misp.dal.dao.materialx;

import com.kinghunt.misp.dal.model.materialx.MaterialDO;
import com.kinghunt.misp.dal.model.materialx.MaterialStockDO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* 耗材库存表
* Created by Mybatis Generator on 2025/02/27
*/
public interface MaterialStockDAO {
    int deleteByPrimaryKey(Long stockId);

    int insert(MaterialStockDO record);

    int insertSelective(MaterialStockDO record);

    MaterialStockDO selectByPrimaryKey(Long stockId);

    int updateByPrimaryKeySelective(MaterialStockDO record);

    int updateByPrimaryKey(MaterialStockDO record);
    List<MaterialStockDO> selectMaterialStockList(@Param("materialStock")MaterialStockDO record,
                                        @Param("offset")int offset,
                                        @Param("size")int size);

    int selectMaterialStockListCount(@Param("materialStock")MaterialStockDO record);
}